package 
{
    public function irrcrpt(arg1:String, arg2:int):String
    {
        var loc3:*=0;
        var loc1:*=new String();
        var loc2:*=0;
        while (loc2 < arg1.length) 
        {
            if ((loc3 = arg1.charCodeAt(loc2)) >= 48 && loc3 <= 57) 
            {
                if ((loc3 = loc3 - arg2 - 48) < 0) 
                {
                    loc3 = loc3 + (57 - 48 + 1);
                }
                loc3 = loc3 % (57 - 48 + 1) + 48;
            }
            else if (loc3 >= 65 && loc3 <= 90) 
            {
                if ((loc3 = loc3 - arg2 - 65) < 0) 
                {
                    loc3 = loc3 + (90 - 65 + 1);
                }
                loc3 = loc3 % (90 - 65 + 1) + 65;
            }
            else if (loc3 >= 97 && loc3 <= 122) 
            {
                if ((loc3 = loc3 - arg2 - 97) < 0) 
                {
                    loc3 = loc3 + (122 - 97 + 1);
                }
                loc3 = loc3 % (122 - 97 + 1) + 97;
            }
            loc1 = loc1 + String.fromCharCode(loc3);
            ++loc2;
        }
        return loc1;
    }
}
